package com.erhirent.bizimpl;

import java.util.List;

import com.erhirent.bean.Brand;
import com.erhirent.bean.Car;
import com.erhirent.bean.Record;
import com.erhirent.bean.Type;

import com.erhirent.biz.ICarBiz;
import com.erhirent.dao.IcarDao;
import com.erhirent.daoimpl.CarDaoImpl;

public class CarBizImpl implements ICarBiz {

	IcarDao mcar = new CarDaoImpl();

	@Override
	public void queryDesc() {
		mcar.queryDesc();

	}

	@Override
	public void queryAsc() {
		mcar.queryAsc();

	}

	@Override
	public List<Type> querytype() {

		return mcar.querytype();

	}

	@Override
	public List<Car> typequery(int n) {

		return mcar.typequery(n);

	}

	@Override
	public List<Brand> querybrand() {
		return mcar.querybrand();

	}

	@Override
	public List<Car> brandquery(int m) {
		return mcar.brandquery(m);

	}

	@Override
	public List<Car> userquery() {
		return mcar.userquery();

	}

	@Override
	public boolean userqueryRent(int a) {

		return mcar.userqueryRent(a);
	}

	@Override
	public boolean userRecord(int carID, int userID, double pri, int day) {

		return mcar.userRecord(carID, userID, pri, day);

	}

	@Override
	public List<Car> userqueryRecord(int userID) {
		return mcar.userqueryRecord(userID);

	}

	@Override
	public double getCarPrice(int a) {

		return mcar.getCarPrice(a);
	}

	@Override
	public void manergerquery(int j) {
		mcar.manergerquery(j);

	}

	@Override
	public List<Car> queryAll() {

		return mcar.queryAll();

	}

	@Override
	public boolean addCar(String name, String remark, int brand, int type, double payday, String car_number,
			String color, double value) {

		return mcar.addCar(name, remark, brand, type, payday, car_number, color, value);

	}

	@Override
	public List<Car> queryChange() {
		return mcar.queryChange();

	}

	@Override
	public List<Car> queryChange(int num) {
		return mcar.queryChange(num);

	}

	@Override
	public boolean changeCarPrice(double pri, int num) {

		return mcar.changeCarPrice(pri, num);

	}

	@Override
	public boolean changeCarputaway(String putaway, int num) {

		return mcar.changeCarputaway(putaway, num);
	}

	@Override
	public List<Record> manegerqueryRecord() {
		return mcar.manegerqueryRecord();

	}

	@Override
	public boolean clearBook(int y) {
		return mcar.clearBook(y);

	}

	@Override
	public boolean carBook(int x) {

		return mcar.carBook(x);

	}

	@Override
	public List<Car> userqueryPutaway() {

		return mcar.userqueryPutaway();

	}

	@Override
	public boolean userqueryOrder(int x) {

		return mcar.userqueryOrder(x);
	}

	@Override
	public List<Car> userqueryoneRecord(int userID) {
		return mcar.userqueryoneRecord(userID);

	}

	@Override
	public boolean isreturn(int carID, int userID) {

		return mcar.isreturn(carID, userID);
	}

	@Override
	public boolean deleterecord(int carID) {

		return mcar.deleterecord(carID);
	}

}
